package com.gc.server.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import com.gc.server.entity.LinkHeadEntity;
import com.gc.server.vo.LinkHeadVo;

                                    
/**
 * 连锁总部实体
 * 表名 link_head
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Oct 22 18:38:13 CST 2020
 */
@Data
public class LinkHeadUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //系统编号
            @ExcelProperty("编号")
            private String code;
        
                        //名称
            @ExcelProperty("简称")
            private String name;
        
                        //简称
            @ExcelProperty("名称")
            private String nick;
        
                        //省
            @ExcelProperty("省")
            private String province;
        
                        //市
            @ExcelProperty("市")
            private String city;
        
                        //县
            @ExcelProperty("县")
            private String county;
        
                        //详细地址
            @ExcelProperty("详细地址")
            private String detail;
        
                        //备注
            @ExcelProperty("备注")
            private String remark;
        
    
    public LinkHeadUp() {

    }

    public LinkHeadVo toVo() {

        LinkHeadEntity entity = new LinkHeadEntity();
            LinkHeadVo vo = new LinkHeadVo(entity);
                                    entity.setId(id);
            
                                    entity.setCode(code);
            
                                    entity.setName(name);
            
                                    entity.setNick(nick);
            
                                    entity.setProvince(province);
            
                                    entity.setCity(city);
            
                                    entity.setCounty(county);
            
                                    entity.setDetail(detail);
            
                                    entity.setRemark(remark);
            
        
        return  vo;
    }



}
